import moment from "moment";


export default class MainAction {
    constructor(comp) {
        this.comp = comp;
    }

    closeModal = () => {
        this.comp.props.updateState({
            entryApplyModalVisible: false
        })
    }

    modalEntered = () => {
        const {props} = this.comp;
        const {form} = props;

        form.setFormStatus('entryinfo', 'edit');
        form.setFormItemsValue('entryinfo', {
            apply_date: {
                value: moment().format('YYYY-MM-DD')
            },
            issyncwork:{
                value: true
            }
        });
    }
}